package com.cheng.project.library.po;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author cheng
 * @since 2018-10-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tbl_permission")
@ApiModel(value="PermissionPo对象", description="")
public class PermissionPo extends SuperPo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "权限名称")
    private String name;

    @ApiModelProperty(value = "资源名称")
    private String uri;

    @ApiModelProperty(value = "类型（1、api；2、页面；3、按钮）")
    private Integer type;

    @ApiModelProperty(value = "父级权限")
    private Long parentId;

}
